#ifndef _FIGHT_H_
#define _FIGHT_H_

#include "cocos2d.h"
#include "someDefineForTest.h"
#include "HelloWorldScene.h"
#include "Player.h"

using namespace cocos2d;

class FightView : public CCLayer
{
public:
	FightView();
	~FightView();

	virtual bool init();
	static CCScene* scene();
	CREATE_FUNC(FightView);

	void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
	void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
	void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent);

	void menuBackLastScene(CCObject* pSender);
	void menuAttack(CCObject* pSender);

	void FightEffect(Player* attack, Player* defence, short attack_type, float ccdt);
	void playerWinEffect();
	void playerLoseEffect();
	void hurtEffect(int hurtValue, CCSprite* sprite);

	void initCharactor();
	void stopBurn();

};





#endif